import request from '@/commons/request'

export function getFoodTypes (foodType) {
  return request({
    url: '/foodType/getFoodTypes',
    method: 'get',
    params: foodType
  })
}

export function addFoodType (foodType) {
  return request({
    url: '/foodType/addFoodType',
    method: 'post',
    data: foodType
  })
}

export function updateFoodType (foodType) {
  return request({
    url: '/foodType/updateFoodType',
    method: 'put',
    data: foodType
  })
}
